import { FixedFileInfo } from "./FixedFileInfo.ts"
import { StringFileInfo } from "./StringFileInfo.ts"
import { StringTable } from "./StringTable.ts"
import { StringTableRecord } from "./StringTableRecord.ts"


/**
 * @author tongxin
 * @date 2024/4/21 15:56
 */
export class VersionInfo {
  static LENGTH = 6 as const;
  VERSION_INFO_LENGTH = 30 as const;
  VERSION_INFO_MAGIC = "VS_VERSION_INFO" as const;
  length?: number;
  valueLength?: number;
  type?: number;
  padding?: number;
  offset?: number;
  fixedFileInfo?: FixedFileInfo;
  stringFileInfo?: StringFileInfo;
  stringTable?: StringTable;
  records?: Record<string, StringTableRecord> = {};

  constructor(byteArray: IByteArray, offset: number) {

  }

  public getEndOffset() {

  }

}
